
#ifndef CACHE_CONTROL_H 
#define CACHE_CONTROL_H
#include "cache_file.h"
#include "http.h"

extern int cache_able(request_t *req);
extern int freshness_check(cache_file_t *cache, request_t *req);
extern void cache_control_set(cache_control_t *cc, header_t *header);
extern time_t cache_freshness_lifetime(cache_file_t *cache);
extern void cache_time_set(request_t *r, cache_file_t *cache);
#endif
